<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" id="formSearch" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">处理状态</label>
            <div class="layui-input-inline">

                <select class="layui-select" name="Status" >
                    <option value="">- 全部类型 -</option>
                    <option value="1" {if condition="isset($_GET['Status']) and $_GET['Status'] == 1"}selected{/if}>已处理</option>
                    <option value="0" {if condition="isset($_GET['Status'])  and $_GET['Status'] == 0 and  $_GET['Status'] != '' "}selected{/if}>未处理</option>

                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline" >
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
            <!-- <button type="button" id="xiazai" class="layui-btn layui-btn-xs" >Excel导出</button>-->
        </div>
    </form>
    <script>
        window.form.render();
        $('[data-export-list]').on('click', function () {
            window.location.href = '{:url("@")}?s=store/order/index&' + $(this).parents('form').serialize() + '&action=export'
        });
    </script>
</fieldset>
<script type="text/javascript">
    layui.use(['table','layer'], function() {
        var $ = layui.jquery;
        $('#xiazai').click(function(){
            var data =$('#formSearch').serialize();
            window.location.href = "{:url('Excelexport/user_down_recharge')}?"+data;
        })
    });
</script>